package com.qianda.qdminiapp.domain.model.activity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 红包领取记录表
 * </p>
 *
 * @author cw
 * @since 2020-07-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class QqdRedpacketDrawLog extends Model<QqdRedpacketDrawLog> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 红包活动id
     */
    private Long redpacketActivityId;

    /**
     * 领取人id
     */
    private Long userId;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 领取金额
     */
    private BigDecimal drawAmt;

    /**
     * 领取时间
     */
    private LocalDateTime drawTime;

    /**
     * 门店id
     */
    private Long storeId;

    /**
     * 门店名称
     */
    private String storeName;

    /**
     * 设备id
     */
    private Long deviceId;

    private String drawNo;

    private String redpacketActivityName;
    private String nickname;
    private String avatar;

    private Long redpacketAmtDetailId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
